<let/x=1/>
<define/myObj foo=1 bar=x + 1/>
<div>${JSON.stringify(myObj)}</div>
<button onClick() { x++; }>
  ${x}
</button>
